﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class InventoryBatchDetailConfig : EntityTypeConfigBase<InventoryBatchDetail>
	{
		public InventoryBatchDetailConfig()
		{
			Property(ibd => ibd.ProductId)
				.IsRequired()
				.HasMaxLength(32);

			Property(ibd => ibd.ProductBarcode)
				.IsRequired()
				.HasMaxLength(50);

			Property(ibd => ibd.ProductName)
				.IsRequired()
				.HasMaxLength(50);

			Property(ibd => ibd.UnitName)
				.HasMaxLength(10);
		}
	}
}
